projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abc9b40
)
a11y: Use GROUP role for ShortcutsShortcut
author
Emmanuele Bassi
<ebassi@gnome.org>
Thu, 12 Nov 2020 21:12:56 +0000
(21:12 +0000)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Thu, 12 Nov 2020 21:46:06 +0000
(21:46 +0000)
And hide the image from the accessible tree.
gtk/gtkshortcutsshortcut.c
patch
|
blob
|
history
diff --git
a/gtk/gtkshortcutsshortcut.c
b/gtk/gtkshortcutsshortcut.c
index 07b7c041553f1976464ec9f37986344b1196cc2e..dcef5d51a1cbad0321e89fbd963666fbf01bb616 100644
(file)
--- a/
gtk/gtkshortcutsshortcut.c
+++ b/
gtk/gtkshortcutsshortcut.c
@@
-721,6
+721,7
@@
gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
g_object_class_install_properties (object_class, LAST_PROP, properties);
gtk_widget_class_set_css_name (widget_class, I_("shortcut"));
+ gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_GROUP);
}
static void
@@
-738,6
+739,7
@@
gtk_shortcuts_shortcut_init (GtkShortcutsShortcut *self)
self->image = g_object_new (GTK_TYPE_IMAGE,
"visible", FALSE,
"valign", GTK_ALIGN_CENTER,
+ "accessible-role", GTK_ACCESSIBLE_ROLE_PRESENTATION,
NULL);
gtk_box_append (GTK_BOX (self->box), GTK_WIDGET (self->image));